package com.ruoyi.project.bajiaostar.tGoodDetail.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.util.ObjectUtils;

import java.util.Date;

/**
 * 商品详情信息对象 t_good_detail
 * 
 * @author wangwu
 * @date 2024-05-20
 */
public class TGoodDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodId;

    /** 日期 */
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date goodDate;

    /** 周几 */
    @Excel(name = "周几")
    private String week;

    /** 票面价 */
    @Excel(name = "票面价")
    private Double ticketPrice;

    /** 段数 */
    @Excel(name = "段数")
    private String paragraph;

    /** 行数 */
    @Excel(name = "行数")
    private String goodRow;

    /** 座位号 */
    @Excel(name = "座位号")
    private String seatNumber;

    /** 剩余数量 */
    @Excel(name = "剩余数量")
    private Long inventory;

    /** 显示数量 */
    @Excel(name = "显示数量")
    private Long displayInventory;

    /** 售价 */
    @Excel(name = "售价")
    private Double price;

    /** 默认结算 */
    @Excel(name = "默认结算")
    private Double defaultSettlementPrice;

    /** VIP结算 */
    @Excel(name = "VIP结算")
    private Double memberSettlementPrice;

    /** VVIP结算 */
    @Excel(name = "VVIP结算")
    private Double twoMemberSettlementPrice;

    /** 备注" */
    @Excel(name = "备注")
    private String goodRemark;

    /** 修改人员 */
    @Excel(name = "修改人员")
    private String updateUser;

    @Excel(name = "排序")
    private Integer goodSort;

    @Excel(name = "颜色")
    private String colour;

    /** 售价色号 */
    @Excel(name ="售价色号")
    private String priceColour;

    //是否售罄 0 未售罄  1 售罄
    private Integer sellOutFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }
    public void setGoodDate(Date goodDate) 
    {
        this.goodDate = goodDate;
    }

    public Date getGoodDate() 
    {
        return goodDate;
    }
    public void setWeek(String week) 
    {
        this.week = week;
    }

    public String getWeek() 
    {
        return week;
    }
    public void setTicketPrice(Double ticketPrice) 
    {
        this.ticketPrice = ticketPrice;
    }

    public Double getTicketPrice() 
    {
        return ticketPrice;
    }
    public void setParagraph(String paragraph) 
    {
        this.paragraph = paragraph;
    }

    public String getParagraph() 
    {
        return paragraph;
    }
    public void setGoodRow(String goodRow) 
    {
        this.goodRow = goodRow;
    }

    public String getGoodRow() 
    {
        return goodRow;
    }
    public void setSeatNumber(String seatNumber) 
    {
        if(!ObjectUtils.isEmpty(seatNumber)){
            this.seatNumber = seatNumber.replace(".0","");
        }
    }

    public String getSeatNumber() 
    {
        return seatNumber;
    }
    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }

    public Long getInventory() 
    {
        return inventory;
    }
    public void setPrice(Double price) 
    {
        this.price = price;
    }

    public Double getPrice() 
    {
        return price;
    }
    public void setDefaultSettlementPrice(Double defaultSettlementPrice) 
    {
        this.defaultSettlementPrice = defaultSettlementPrice;
    }

    public Double getDefaultSettlementPrice() 
    {
        return defaultSettlementPrice;
    }
    public void setMemberSettlementPrice(Double memberSettlementPrice) 
    {
        this.memberSettlementPrice = memberSettlementPrice;
    }

    public Double getMemberSettlementPrice() 
    {
        return memberSettlementPrice;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    public Long getDisplayInventory() {
        return displayInventory;
    }

    public void setDisplayInventory(Long displayInventory) {
        this.displayInventory = displayInventory;
    }

    public Double getTwoMemberSettlementPrice() {
        return twoMemberSettlementPrice;
    }

    public void setTwoMemberSettlementPrice(Double twoMemberSettlementPrice) {
        this.twoMemberSettlementPrice = twoMemberSettlementPrice;
    }

    public Integer getGoodSort() {
        return goodSort;
    }

    public void setGoodSort(Integer goodSort) {
        this.goodSort = goodSort;
    }

    public String getGoodRemark() {
        return goodRemark;
    }

    public void setGoodRemark(String goodRemark) {
        this.goodRemark = goodRemark;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public String getPriceColour() {
        return priceColour;
    }

    public void setPriceColour(String priceColour) {
        this.priceColour = priceColour;
    }

    public Integer getSellOutFlag() {
        return sellOutFlag;
    }

    public void setSellOutFlag(Integer sellOutFlag) {
        this.sellOutFlag = sellOutFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodId", getGoodId())
            .append("goodDate", getGoodDate())
            .append("week", getWeek())
            .append("ticketPrice", getTicketPrice())
            .append("paragraph", getParagraph())
            .append("goodRow", getGoodRow())
            .append("seatNumber", getSeatNumber())
            .append("inventory", getInventory())
            .append("price", getPrice())
            .append("defaultSettlementPrice", getDefaultSettlementPrice())
            .append("memberSettlementPrice", getMemberSettlementPrice())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .toString();
    }
}
